package com.aspose.cells;

class zuh {
   private Workbook a;
   private zok b;

   zuh(zok var1) {
      this.a = var1.a;
      this.b = var1;
   }

   zuh(Workbook var1) {
      this.a = var1;
   }

   void a(zcfx var1) throws Exception {
      var1.b(true);
      var1.b("MapInfo ");
      XmlMapCollection var2 = this.a.getWorksheets().getXmlMaps();
      if (var2.d != null && var2.d.length() > 0) {
         var1.a("xmlns", (String)null, var2.d);
      }

      if (var2.c != null) {
         var1.a("SelectionNamespaces", (String)null, var2.c);
      }

      int var3;
      for(var3 = 0; var3 < var2.b.size(); ++var3) {
         String var4 = (String)var2.b.get(var3);
         var1.d(var4);
      }

      for(var3 = 0; var3 < var2.getCount(); ++var3) {
         XmlMap var5 = var2.get(var3);
         this.a(var1, var5);
      }

      var1.b();
      var1.d();
      var1.e();
   }

   private void a(zcfx var1, XmlMap var2) throws Exception {
      zcfj var3 = var2.j;
      var1.b("Map");
      var1.a("ID", zase.y(var2.c));
      var1.a("Name", var2.d);
      var1.a("RootElement", var2.g);
      var1.a("SchemaID", var2.h);
      var1.a("ShowImportExportValidationErrors", var2.i ? "true" : "false");
      var1.a("AutoFit", var2.b ? "true" : "false");
      var1.a("Append", var2.a ? "true" : "false");
      var1.a("PreserveSortAFLayout", var2.f ? "true" : "false");
      var1.a("PreserveFormat", var2.e ? "true" : "false");
      if (var3 != null) {
         var1.b("DataBinding");
         var1.a("FileBinding", var3.c ? "1" : "0");
         var1.a("ConnectionID", zase.y(var3.a));
         var1.a("DataBindingLoadMode", zase.aL(var3.e));
         if (var3.d != null && var3.d.length() > 0) {
            var1.a("FileBindingName", var3.d);
         }

         if (var3.b != null && var3.b.length() > 0) {
            var1.a("DataBindingName", var3.b);
         }

         var1.b();
      }

      var1.b();
   }
}
